<template>
  <div>{{ count }}</div>
  <button @click="plusOne">+1</button>
</template>
<script>
import { ref } from 'vue'
export default {
  setup() {
    let count = ref(0)

    const plusOne = () => {
      console.log(count.value);
      count.value++
    }

    return {
      count,
      plusOne
    }
  }
};
</script>